//
//  Setup1TableViewCell.m
//  片刻
//
//  Created by lanou3g on 15/6/4.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "Setup1TableViewCell.h"
#import "MaocHeader.h"
@implementation Setup1TableViewCell
-(void)dealloc
{
    _redianLabel = nil;
    _contentLabel = nil;
    _opne = nil;
    _setupImage = nil;
    _tongImage = nil;
    _biaoImage = nil;
    _mianLabel = nil;
    [super dealloc];
}

//热点推送的自定义cell
- (void)awakeFromNib {
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _redianLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 10, 150, 30)];
        _redianLabel.text = @"热点推送";
        _redianLabel.font=[UIFont systemFontOfSize:20];
        _opne = [[UILabel alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 80, 5, 70, 40)];
        _opne.text = @"已关闭";
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 60, SCREEN_WIDTH - 30, 10)];
        _contentLabel.text = @"关闭后，您将不会收到片刻的通知。开启方法：";
        [_contentLabel setTextColor:[UIColor grayColor]];
        _contentLabel.font=[UIFont systemFontOfSize:10];
        _mianLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 80, SCREEN_WIDTH-30, 40)];
        _mianLabel.text = @"       设置      >           通知      >         片刻";
        _setupImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 5, 30, 30)];
        _setupImage.backgroundColor = [UIColor yellowColor];
        _tongImage = [[UIImageView alloc] initWithFrame:CGRectMake(30*4, 5, 30, 30)];
        _tongImage.backgroundColor = [UIColor yellowColor];;
        _biaoImage = [[UIImageView alloc] initWithFrame:CGRectMake(30*8, 5, 30, 30)];
        _biaoImage.backgroundColor = [UIColor yellowColor];
        
        [self.contentView addSubview:_redianLabel];
        [self.contentView addSubview:_opne];
        [self.contentView addSubview:_contentLabel];
        [self.contentView addSubview:_mianLabel];
        [self.mianLabel addSubview:_tongImage];
        [self.mianLabel addSubview:_biaoImage];
        [self.mianLabel addSubview:_setupImage];
        
        [_redianLabel release];
        [_opne release];
        [_contentLabel release];
        [_mianLabel release];
        [_tongImage release];
        [_biaoImage release];
        [_setupImage release];
        
    }
    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
